package com.fulihui.usercore;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * main 函数启动
 * Created by willard on 16-2-22.
 */
@SpringBootApplication
@EnableScheduling
@ComponentScan(basePackages = {"com.fulihui"})
@EnableCaching
@MapperScan(basePackages = {"com.fulihui.usercore.dal.mapper"})
@EnableTransactionManagement
public class BootstrapMain {

    public static void main(String[] args) {
        SpringApplication.run(BootstrapMain.class, args);
    }
}